﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Jinjia.Approve.IRepository.JJFlow;
using Jinjia.Approve.IService.JJFlow;
using Jinjia.Approve.Model.VM.JJFlow.DTO;

namespace Jinjia.Approve.Service.JJFlow
{
    public class JJFlowInstanceEmpService : IJJFlowInstanceEmpService
    {
        private readonly IFlowInstanceEmpRepository _flowInstanceEmpRepository;

        public JJFlowInstanceEmpService(IFlowInstanceEmpRepository flowInstanceEmpRepository)
        {
            _flowInstanceEmpRepository = flowInstanceEmpRepository;
        }
        
        public async Task<List<EmpInfo>> GetInstanceUserInfo(int instanceId, int templateId) => await _flowInstanceEmpRepository.GetInstanceUserInfo(instanceId, templateId);
    }
}